<extend name="Public/base" />

<block name="body"> <!-- 标题栏 -->
<div class="main-title">
	<h2>广告列表</h2>
</div>
<div class="cf">
	<div class="fl">
		<a class="btn" href="{:U('add')}">新 增</a>	
	</div>
</div>
<!-- 数据列表 -->
<div class="data-table table-striped">
	<table class="">
		<thead>
			<tr>
				<th>ID</th>
				<th>标题</th>
				<th>排序</th>
				<th>位置</th>
				<th>绑定商品</th>
				<th>到期时间</th>
				<th>创建时间</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<notempty name="_list">
				<volist name="_list" id="vo">
					<tr>
						<td>{$vo.id}</td>
						<td>{$vo.title}</td>			
						<td>{$vo.sort}</td>
						<td>{$vo.position|getAdPositions=###}</td>
						<td>{$vo.product_id|get_table_field=###,'id','title','product'}</td>
						<td>{$vo.end_time_text}</td>
						<td><notempty name='vo.create_time'>{$vo.create_time|time_format}</notempty></td>
						<td>
							<a href="{:U('edit?id='.$vo['id'])}">编辑</a>
							<a href="{:U('del?id='.$vo['id'])}" class="confirm ajax-get">删除</a>
						</td>
					</tr>
				</volist>
			<else />
				<tr>
					<td colspan="7" class="text-center">aOh! 暂时还没有内容!</td>
				</tr>
			</notempty>
		</tbody>
	</table>
</div>
<div class="page">{$_page}</div>
</block>

<block name="script"> <script
	src="__STATIC__/thinkbox/jquery.thinkbox.js"></script> <script
	type="text/javascript">
	
    //导航高亮
    highlight_subnav('{:U('Ad/index')}');
	</script> </block>
